import request from "@/utils/request";

export default {
  getHospSetList(current, limit, searchObj) {
    return request({
      url: `/admin/hosp/hospitalSet/findPageHospSet/${current}/${limit}`,
      method: "post",
      data: searchObj,
    });
  },
  removeDataById(id) {
    return request({
      url: `/admin/hosp/hospitalSet/${id}`,
      method: "delete",
    });
  },
  batchRemove(list) {
    return request({
      url: `/admin/hosp/hospitalSet/batchRemove`,
      method: "delete",
      data: list,
    });
  },
  lockHospitalSet(id, status) {
    return request({
      url: `/admin/hosp/hospitalSet/lockHospitalSet/${id}/${status}`,
      method: "put",
    });
  },
  // 添加医院设置
  saveHospitalSet(hosp) {
    return request({
      url: `/admin/hosp/hospitalSet/saveHospitalSet`,
      method: "post",
      data: hosp,
    });
  },
  getHospSet(id) {
    return request({
      url: `/admin/hosp/hospitalSet/getHospSet/${id}`,
      method: "get",
    });
  },
  updateHospitalSet(hosp) {
    return request({
      url: `/admin/hosp/hospitalSet/updateHospitalSet`,
      method: "post",
      data: hosp,
    });
  },
};
